import "./index.css";
import "tailwindcss/tailwind.css";
import React from "react";
import ReactDOM from "react-dom/client";
import { ConfigProvider } from "antd";
import zhCN from "antd/locale/zh_CN";
import { Provider } from "react-redux";
import store from "@/store";
import { RouterProvider } from "react-router-dom";
import router from "@/router";
import NiceModal from "@/modals/index";

const rootRender = (
  <ConfigProvider locale={zhCN}>
    <Provider store={store}>
      <NiceModal.Provider>
        <RouterProvider router={router} />
      </NiceModal.Provider>
    </Provider>
  </ConfigProvider>
);
const root = ReactDOM.createRoot(document.getElementById("root"));
root.render(rootRender);
